<template>
  <div class="box">
    <div v-for="item in infoImg"  :key="item.id">
    <img :src="item.url" alt="" class="bigImg"  @click="showMask" >
    <router-link tag="span" to="/" class="fa fa-chevron-circle-left ico-left"></router-link>
    <footer>
      <h4>{{item.title}}</h4>
      <span><i class="fa fa-picture-o" aria-hidden="true"></i> 39</span>
    </footer>
    </div>

  </div>
</template>

<script>

export default {
  props:["infoImg"],
  methods:{
    showMask(){
      this.$store.commit("showMask",true)
    }
  }
}
</script>

<style lang="less" scoped>
.box{
  position: relative;
 .bigImg{
   width: 100%;
   display: block;
  }
  .ico-left{
    position: absolute;
    top:10/16rem;
    left:10/16rem;
    font-size: 35/16rem;
  }
  footer{
    background: #000;
    width: 100%;
    position: absolute;
    line-height: 20/16rem;
    bottom: 0;
    color: #fff;
    font-size: 13/16rem;
    span{
      float: right;
      margin-right: 5/16rem;
    }
    h4{
      float: left;
      margin-left: 20/16rem;
    }
  }
  span{
    float: right;
  }
}
</style>